﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DGPLADES_MenuPpal.aspx.cs" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dx" %>

<%--<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>--%>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script runat="server">
        String str_empty                    = "";
        String str_cero                     = "0";
        String str_entrada;
        
        protected override void OnLoad(EventArgs e)
        {
            if (Session.Contents["ses_intnivel"] == null)
            {
                str_entrada = str_cero;
            }
            else
            {
                str_entrada = Session.Contents["ses_bl_entrada"].ToString();
            }

            if (str_entrada.Equals(str_cero))
            {
                Session.Contents.Add("ses_intnivel", 0);
                
                //// Se 'carga' la página incial.
                Response.Redirect("~/Default.aspx", false);
            }
            else
            {
                Session.Contents["ses_intnivel"] = 1;
                // Se 'carga' la página actual.
                base.OnLoad(e);
            }
            //base.OnLoad(e);
        } // protected override void OnLoad(EventArgs e).
        
    </script>
    <h2> <asp:Label ID="lblMenu" runat="server" Text="Men&uacute; Principal" ></asp:Label></h2>
    <%--<asp:TextBox ID="TextBox1" runat="server" Height="3308px" TextMode="MultiLine" 
        Width="601px">--%>
 <%--    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
--%>        <table style="width:100%;">
       <tr>
                <td class="style2">
               
            </td>
            <%--<td class="style2">
               <img align="center" alt="" src="../../Img/Mod_MenuPpal/MenuOpciones.jpg" />
            </td>--%>
            <td class="style2">
               
            </td>
        </tr>
            <tr>
                <%--<td>
                    <img align="center" alt="" src="Imagenes/MenuModAdmin.jpg" />
                </td>--%>
               <td class="style20" valign="top">
 <%--                        SelectCommand="SELECT * FROM [usuarios] WHERE ([Username] = @paramUser and [Password] = @paramPwd)">
                        <SelectParameters>
                                <asp:QueryStringParameter DefaultValue="a" Name="paramUser" 
                                    QueryStringField="usr" Type="String" />
                                    <asp:QueryStringParameter DefaultValue="a" Name="paramPwd" 
                                    QueryStringField="pwd" Type="String" />
                            </SelectParameters>

 --%>
                    <asp:SqlDataSource ID="SqlDataSourceMenuDGPlaDeS" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:DGPLADES_BudConnectionString %>"                  
                         SelectCommand="SELECT * FROM [grupos]" 
                       
                       
                       ProviderName="<%$ ConnectionStrings:DGPLADES_BudConnectionString.ProviderName %>"> 
                    </asp:SqlDataSource>
                </td>
            </tr>
                
                </table>
        <%--</asp:TextBox>--%>
        <p> &nbsp;</p>
        <p> &nbsp;</p> 
</asp:Content>